<?php

namespace App;

use Illuminate\Database\Eloquent\Model;
use App\Register;

class Member extends Model
{
    protected $keyType = 'string';
    /**
     * 获取用户关联信息
     * return $this->hasOne('App\B', 'b_id', 'id');（第一个参数是B model的路径，第二个是B表中关联的id,第三个是B表中要关联A表的id）
     */
    public function member_relation_register(){

        //return $this->belongsTo('App\Register','register_id','id');
    }
}
